﻿<%@ Page Language="VB" AutoEventWireup="false" CodeFile="F05_Edit.aspx.vb" Inherits="F05_Edit" %>

<%@ Register Assembly="ISNet.WebUI.WebInput" Namespace="ISNet.WebUI.WebControls" TagPrefix="ISWebInput" %>
<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
     <style>
        input {
            font-family: Tahoma !important;
            font-size: 12px !important;
        }

        html * {
            font-family: Tahoma;
            font-size: 12px;
        }
    </style>
    <title></title>
    <link href="script/style.css" rel="stylesheet" />
    <script src="script/tinybox.js"></script>
    <script type="text/javascript">
        function ClosePop() {
            window.parent.TINY.box.hide();
        }
        function closeJS2() {
            //window.location.reload(true);
        }
        
        function setAttach(att,rownum){
            if (rownum == "1")
            {
                document.getElementById("Attach1").innerHTML  = att;
            }
            else if (rownum == "2"){
                document.getElementById("Attach2").innerHTML  = att;
            }
            else if (rownum == "3"){
                document.getElementById("Attach3").innerHTML  = att;
            }
            else if (rownum == "4"){
                document.getElementById("Attach4").innerHTML  = att;
            }
            else if (rownum == "5"){
                document.getElementById("Attach5").innerHTML  = att;
            }
            else if (rownum == "6"){
                document.getElementById("Attach6").innerHTML  = att;
            }
            else if (rownum == "7"){
                document.getElementById("Attach7").innerHTML  = att;
            }

        }

        function CalSum() {
            var w1_3 = ISGetObject("E1_3");
            var w1_4 = ISGetObject("E1_4");
            var w1_5 = ISGetObject("E1_5");
            var sum1_1 = (w1_3.GetValueData().replace(/\,/g, '') * w1_4.GetValueData().replace(/\,/g, ''));
            sum1_1 = Math.ceil(sum1_1 / 100) * 100;
            if (sum1_1 + '' == "NaN" || sum1_1 == 0) {
                sum1_1 = 0;
            }
            w1_5.SetValueData(sum1_1);
            var w1_6 = ISGetObject("E1_6");
            var w1_7 = ISGetObject("E1_7");
            var w1_8 = ISGetObject("E1_8");
            var sum1_2 = (w1_6.GetValueData().replace(/\,/g, '') * w1_7.GetValueData().replace(/\,/g, ''));
            sum1_2 = Math.ceil(sum1_2 / 100) * 100;
            if (sum1_2 + '' == "NaN" || sum1_2 == 0) {
                sum1_2 = 0;
            }
            w1_8.SetValueData(sum1_2);

            var w2_3 = ISGetObject("E2_3");
            var w2_4 = ISGetObject("E2_4");
            var w2_5 = ISGetObject("E2_5");
            var sum2_1 = (w2_3.GetValueData().replace(/\,/g, '') * w2_4.GetValueData().replace(/\,/g, ''));
            sum2_1 = Math.ceil(sum2_1 / 100) * 100;
            if (sum2_1 + '' == "NaN" || sum2_1 == 0) {
                sum2_1 = 0;
            }
            w2_5.SetValueData(sum2_1);
            var w2_6 = ISGetObject("E2_6");
            var w2_7 = ISGetObject("E2_7");
            var w2_8 = ISGetObject("E2_8");
            var sum2_2 = (w2_6.GetValueData().replace(/\,/g, '') * w2_7.GetValueData().replace(/\,/g, ''));
            sum2_2 = Math.ceil(sum2_2 / 100) * 100;
            if (sum2_2 + '' == "NaN" || sum2_2 == 0) {
                sum2_2 = 0;
            }
            w2_8.SetValueData(sum2_2);

            var w3_3 = ISGetObject("E3_3");
            var w3_4 = ISGetObject("E3_4");
            var w3_5 = ISGetObject("E3_5");
            var sum3_1 = (w3_3.GetValueData().replace(/\,/g, '') * w3_4.GetValueData().replace(/\,/g, ''));
            sum3_1 = Math.ceil(sum3_1 / 100) * 100;
            if (sum3_1 + '' == "NaN" || sum3_1 == 0) {
                sum3_1 = 0;
            }
            w3_5.SetValueData(sum3_1);
            var w3_6 = ISGetObject("E3_6");
            var w3_7 = ISGetObject("E3_7");
            var w3_8 = ISGetObject("E3_8");
            var sum3_2 = (w3_6.GetValueData().replace(/\,/g, '') * w3_7.GetValueData().replace(/\,/g, ''));
            sum3_2 = Math.ceil(sum3_2 / 100) * 100;
            if (sum3_2 + '' == "NaN" || sum3_2 == 0) {
                sum3_2 = 0;
            }
            w3_8.SetValueData(sum3_2);

            var w4_3 = ISGetObject("E4_3");
            var w4_4 = ISGetObject("E4_4");
            var w4_5 = ISGetObject("E4_5");
            var sum4_1 = (w4_3.GetValueData().replace(/\,/g, '') * w4_4.GetValueData().replace(/\,/g, ''));
            sum4_1 = Math.ceil(sum4_1 / 100) * 100;
            if (sum4_1 + '' == "NaN" || sum4_1 == 0) {
                sum4_1 = 0;
            }
            w4_5.SetValueData(sum4_1);
            var w4_6 = ISGetObject("E4_6");
            var w4_7 = ISGetObject("E4_7");
            var w4_8 = ISGetObject("E4_8");
            var sum4_2 = (w4_6.GetValueData().replace(/\,/g, '') * w4_7.GetValueData().replace(/\,/g, ''));
            sum4_2 = Math.ceil(sum4_2 / 100) * 100;
            if (sum4_2 + '' == "NaN" || sum4_2 == 0) {
                sum4_2 = 0;
            }
            w4_8.SetValueData(sum4_2);

            var w5_3 = ISGetObject("E5_3");
            var w5_4 = ISGetObject("E5_4");
            var w5_5 = ISGetObject("E5_5");
            var sum5_1 = (w5_3.GetValueData().replace(/\,/g, '') * w5_4.GetValueData().replace(/\,/g, ''));
            sum5_1 = Math.ceil(sum5_1 / 100) * 100;
            if (sum5_1 + '' == "NaN" || sum5_1 == 0) {
                sum5_1 = 0;
            }
            w5_5.SetValueData(sum5_1);
            var w5_6 = ISGetObject("E5_6");
            var w5_7 = ISGetObject("E5_7");
            var w5_8 = ISGetObject("E5_8");
            var sum5_2 = (w5_6.GetValueData().replace(/\,/g, '') * w5_7.GetValueData().replace(/\,/g, ''));
            sum5_2 = Math.ceil(sum5_2 / 100) * 100;
            if (sum5_2 + '' == "NaN" || sum5_2 == 0) {
                sum5_2 = 0;
            }
            w5_8.SetValueData(sum5_2);

            var w6_3 = ISGetObject("E6_3");
            var w6_4 = ISGetObject("E6_4");
            var w6_5 = ISGetObject("E6_5");
            var sum6_1 = (w6_3.GetValueData().replace(/\,/g, '') * w6_4.GetValueData().replace(/\,/g, ''));
            sum6_1 = Math.ceil(sum6_1 / 100) * 100;
            if (sum6_1 + '' == "NaN" || sum6_1 == 0) {
                sum6_1 = 0;
            }
            w6_5.SetValueData(sum6_1);
            var w6_6 = ISGetObject("E6_6");
            var w6_7 = ISGetObject("E6_7");
            var w6_8 = ISGetObject("E6_8");
            var sum6_2 = (w6_6.GetValueData().replace(/\,/g, '') * w6_7.GetValueData().replace(/\,/g, ''));
            sum6_2 = Math.ceil(sum6_2 / 100) * 100;
            if (sum6_2 + '' == "NaN" || sum6_2 == 0) {
                sum6_2 = 0;
            }
            w6_8.SetValueData(sum6_2);

            var w7_3 = ISGetObject("E7_3");
            var w7_4 = ISGetObject("E7_4");
            var w7_5 = ISGetObject("E7_5");
            var sum7_1 = (w7_3.GetValueData().replace(/\,/g, '') * w7_4.GetValueData().replace(/\,/g, ''));
            sum7_1 = Math.ceil(sum7_1 / 100) * 100;
            if (sum7_1 + '' == "NaN" || sum7_1 == 0) {
                sum7_1 = 0;
            }
            w7_5.SetValueData(sum7_1);
            var w7_6 = ISGetObject("E7_6");
            var w7_7 = ISGetObject("E7_7");
            var w7_8 = ISGetObject("E7_8");
            var sum7_2 = (w7_6.GetValueData().replace(/\,/g, '') * w7_7.GetValueData().replace(/\,/g, ''));
            sum7_2 = Math.ceil(sum7_2 / 100) * 100;
            if (sum7_2 + '' == "NaN" || sum7_2 == 0) {
                sum7_2 = 0;
            }
            w7_8.SetValueData(sum7_2);

            var w1_1 = ISGetObject("E1_1");
            var w1_2 = ISGetObject("E1_2");
            var w2_1 = ISGetObject("E2_1");
            var w2_2 = ISGetObject("E2_2");
            var w3_1 = ISGetObject("E3_1");
            var w3_2 = ISGetObject("E3_2");
            var w4_1 = ISGetObject("E4_1");
            var w4_2 = ISGetObject("E4_2");
            var w5_1 = ISGetObject("E5_1");
            var w5_2 = ISGetObject("E5_2");
            var w6_1 = ISGetObject("E6_1");
            var w6_2 = ISGetObject("E6_2");
            var w7_1 = ISGetObject("E7_1");
            var w7_2 = ISGetObject("E7_2");
   
            var ws1 =  ISGetObject("S1");
            var sum1 =  (parseFloat(w1_1.GetValueData().replace(/\,/g, '')) + parseFloat(w2_1.GetValueData().replace(/\,/g, '')) + parseFloat(w3_1.GetValueData().replace(/\,/g, '')) +  parseFloat(w4_1.GetValueData().replace(/\,/g, '')) + parseFloat(w5_1.GetValueData().replace(/\,/g, '')) + parseFloat(w6_1.GetValueData().replace(/\,/g, '')) + parseFloat(w7_1.GetValueData().replace(/\,/g, '')));
            if (sum1 + '' == "NaN" || sum1 == 0) {
                sum1 = 0;
            }
            ws1.SetValueData(sum1.toFixed(0));
            var ws2 =  ISGetObject("S2");
            var sum2 =  (parseFloat(w1_2.GetValueData().replace(/\,/g, '')) + parseFloat(w2_2.GetValueData().replace(/\,/g, '')) + parseFloat(w3_2.GetValueData().replace(/\,/g, '')) +  parseFloat(w4_2.GetValueData().replace(/\,/g, '')) + parseFloat(w5_2.GetValueData().replace(/\,/g, '')) + parseFloat(w6_2.GetValueData().replace(/\,/g, '')) + parseFloat(w7_2.GetValueData().replace(/\,/g, '')));
            if (sum2 + '' == "NaN" || sum2 == 0) {
                sum2 = 0;
            }
            ws2.SetValueData(sum2.toFixed(2));
            var ws3 =  ISGetObject("S3");
            var sum3 =  (parseFloat(w1_3.GetValueData().replace(/\,/g, '')) + parseFloat(w2_3.GetValueData().replace(/\,/g, '')) + parseFloat(w3_3.GetValueData().replace(/\,/g, '')) +  parseFloat(w4_3.GetValueData().replace(/\,/g, '')) + parseFloat(w5_3.GetValueData().replace(/\,/g, '')) + parseFloat(w6_3.GetValueData().replace(/\,/g, '')) + parseFloat(w7_3.GetValueData().replace(/\,/g, '')));
            if (sum3 + '' == "NaN" || sum3 == 0) {
                sum3 = 0;
            }
            ws3.SetValueData(sum3.toFixed(0));
            //var ws4 =  ISGetObject("S4");
            //var sum4 =  (parseFloat(w1_4.GetValueData().replace(/\,/g, '')) + parseFloat(w2_4.GetValueData().replace(/\,/g, '')) + parseFloat(w3_4.GetValueData().replace(/\,/g, '')) +  parseFloat(w4_4.GetValueData().replace(/\,/g, '')) + parseFloat(w5_4.GetValueData().replace(/\,/g, '')) + parseFloat(w6_4.GetValueData().replace(/\,/g, '')) + parseFloat(w7_4.GetValueData().replace(/\,/g, '')));
            //ws4.SetValueData(sum4.toFixed(2));
            var ws5 =  ISGetObject("S5");
            var sum5 =  (parseFloat(w1_5.GetValueData().replace(/\,/g, '').replace(/\,/g, '')) + parseFloat(w2_5.GetValueData().replace(/\,/g, '')) + parseFloat(w3_5.GetValueData().replace(/\,/g, '')) +  parseFloat(w4_5.GetValueData().replace(/\,/g, '')) + parseFloat(w5_5.GetValueData().replace(/\,/g, '')) + parseFloat(w6_5.GetValueData().replace(/\,/g, '')) + parseFloat(w7_5.GetValueData().replace(/\,/g, '')));
            if (sum5 + '' == "NaN" || sum5 == 0) {
                sum5 = 0;
            }
            ws5.SetValueData(sum5.toFixed(2));
            var ws6 =  ISGetObject("S6");
            var sum6 =  (parseFloat(w1_6.GetValueData().replace(/\,/g, '')) + parseFloat(w2_6.GetValueData().replace(/\,/g, '')) + parseFloat(w3_6.GetValueData().replace(/\,/g, '')) +  parseFloat(w4_6.GetValueData().replace(/\,/g, '')) + parseFloat(w5_6.GetValueData().replace(/\,/g, '')) + parseFloat(w6_6.GetValueData().replace(/\,/g, '')) + parseFloat(w7_6.GetValueData().replace(/\,/g, '')));
            if (sum6 + '' == "NaN" || sum6 == 0) {
                sum6 = 0;
            }
            ws6.SetValueData(sum6.toFixed(0));
            //var ws7 =  ISGetObject("S7");
            //var sum7 =  (parseFloat(w1_7.GetValueData().replace(/\,/g, '')) + parseFloat(w2_7.GetValueData().replace(/\,/g, '')) + parseFloat(w3_7.GetValueData().replace(/\,/g, '')) +  parseFloat(w4_7.GetValueData().replace(/\,/g, '')) + parseFloat(w5_7.GetValueData().replace(/\,/g, '')) + parseFloat(w6_7.GetValueData().replace(/\,/g, '')) + parseFloat(w7_7.GetValueData().replace(/\,/g, '')));
            //ws7.SetValueData(sum7.toFixed(2));
            var ws8 =  ISGetObject("S8");
            var sum8 =  (parseFloat(w1_8.GetValueData().replace(/\,/g, '')) + parseFloat(w2_8.GetValueData().replace(/\,/g, '')) + parseFloat(w3_8.GetValueData().replace(/\,/g, '')) +  parseFloat(w4_8.GetValueData().replace(/\,/g, '')) + parseFloat(w5_8.GetValueData().replace(/\,/g, '')) + parseFloat(w6_8.GetValueData().replace(/\,/g, '')) + parseFloat(w7_8.GetValueData().replace(/\,/g, ''))); 
            if (sum8 + '' == "NaN" || sum8 == 0) {
                sum8 = 0;
            }
            ws8.SetValueData(sum8.toFixed(2));
        }

        function DisableBtn() {
            var btn = document.getElementById("SaveDocument");
            btn.disabled = true;
        }
        window.onbeforeunload = DisableBtn;

        function WebInputOnKeyDown(controlId) {
            var textval = document.getElementById(controlId).value.toString();
            if (textval.length > 13) {
                if (event.keyCode < 48) {
                    return true;
                } else {
                    event.returnValue = false;
                    return false;
                }
            }
        }


        function WebInputOnBeforeValueChanged(controlId) {
            var winput = ISGetObject(controlId);
            var wvalue = winput.GetValueData();
            wvalue = Math.round(wvalue);
            winput.SetValueData(wvalue);
            CalSum();
            return false;
        }
    </script>

</head>
<style>
    .tblf05_header {
        font-size: 16px;
    }

    .tblf05_table {
        font-size: 12px;
    }

    .tblf05_row_h {
        font-weight: bold;
    }

    .tblf05_row_o {
        background-color: #f4f4f4;
    }

    .tblf05_row_d {
        background-color: #ffffff;
    }
</style>
<body onload="CalSum()">
    <form id="form1" runat="server" style="font-family: Tahoma" name="f1" method='post' action=''>
        <div>

            <table class="tblf05_header" width="100%">
                <tr>
                    <td>
                        <asp:Label ID="Label1" runat="server" Style="font-style: italic; color: #0066FF; font-weight: 700;" Text=""></asp:Label>
                    </td>
                </tr>
                <tr>
                    <td>&nbsp;&nbsp;&nbsp;&nbsp;
                        <asp:Label ID="Label2" runat="server" Style="color: #0066FF; font-weight: 700" Text=""></asp:Label>
                    </td>
                </tr>
                <tr>
                    <td align="center" style="font-family: Tahoma; font-size: 14px;">
                        <table class="tblf05_table" width="97%" cellpadding="2" cellspacing="2">
                            <tr class="tblf05_row_h" style="background-color: #e7e7e7; text-align: center;">
                                <td colspan="3"></td>
                                <td colspan="3" style="background-color: #b4b4b4;">ประมาณการค่าใช้จ่ายดำเนินคดี</td>
                                <td colspan="3" style="background-color: #7dc7ff;">ประมาณการค่าจ้างทนายความ</td>
                                <td></td>
                            </tr>
                            <tr class="tblf05_row_h" style="background-color: #e7e7e7; text-align: center;">
                                <td>สถานะ</td>
                                <td width="50px">จำนวน<br />
                                    ราย</td>
                                <td width="100px">เงินต้น</td>
                                <td style="background-color: #b4b4b4;" width="50px">จำนวน<br />
                                    ราย</td>
                                <td style="background-color: #b4b4b4;" width="100px">จำนวนเงิน<br />
                                    ต่อราย</td>
                                <td style="background-color: #b4b4b4;" width="100px">จำนวนเงินรวม</td>
                                <td style="background-color: #7dc7ff;" width="50px">จำนวน<br />
                                    ราย</td>
                                <td style="background-color: #7dc7ff;" width="100px">จำนวนเงิน<br />
                                    ต่อราย</td>
                                <td style="background-color: #7dc7ff;" width="120px">จำนวนเงินรวม</td>
                                <td></td>
                            </tr>
                            <tr class="tblf05_row_o">
                                <td align="left">อยู่ระหว่างทวงถาม<br />
                                    (ติดตามหนี้)<asp:Label ID="E1_ID" runat="server" Text="" Visible="false"></asp:Label>
                                    <asp:Label ID="E1_ID2" runat="server" Text="" Visible="false"></asp:Label>
                                </td>
                                <td>
                                    <ISWebInput:WebInput runat="server" ID="E1_1" Width="50px" NumericInput="true" Height="22px" MaxLength="10" Nullable="false">
                                        <ClientSideEvents OnAfterValueChanged="CalSum" OnKeyDown="WebInputOnKeyDown" OnKeyPress="WebInputOnKeyDown" OnBeforeValueChanged="WebInputOnBeforeValueChanged"></ClientSideEvents>
                                        <DisplayFormat Format="#,###,###,##0.##" IsEnabled="True" Type="Number">
                                        </DisplayFormat>
                                    </ISWebInput:WebInput>
                                </td>
                                <td>
                                    <ISWebInput:WebInput runat="server" ID="E1_2" Width="100px" NumericInput="true" Height="20px" MaxLength="14" Nullable="false">
                                        <ClientSideEvents OnAfterValueChanged="CalSum" OnKeyDown="WebInputOnKeyDown" OnKeyPress="WebInputOnKeyDown"></ClientSideEvents>
                                        <DisplayFormat Format="###,###,###,##0.00" IsEnabled="True" Type="Number">
                                        </DisplayFormat>
                                    </ISWebInput:WebInput>
                                </td>
                                <td>
                                    <ISWebInput:WebInput runat="server" ID="E1_3" Width="50px" NumericInput="true" Height="20px" MaxLength="10" Nullable="false">
                                        <ClientSideEvents OnAfterValueChanged="CalSum" OnKeyDown="WebInputOnKeyDown" OnKeyPress="WebInputOnKeyDown" OnBeforeValueChanged="WebInputOnBeforeValueChanged"></ClientSideEvents>
                                        <DisplayFormat Format="#,###,###,##0.##" IsEnabled="True" Type="Number">
                                        </DisplayFormat>
                                    </ISWebInput:WebInput>
                                </td>
                                <td>
                                    <ISWebInput:WebInput runat="server" ID="E1_4" Width="100px" NumericInput="true" Height="20px" MaxLength="14" Nullable="false">
                                        <ClientSideEvents OnAfterValueChanged="CalSum" OnKeyDown="WebInputOnKeyDown" OnKeyPress="WebInputOnKeyDown"></ClientSideEvents>
                                        <DisplayFormat Format="###,###,###,##0.00" IsEnabled="True" Type="Number">
                                        </DisplayFormat>
                                    </ISWebInput:WebInput>
                                </td>
                                <td>
                                    <ISWebInput:WebInput runat="server" ID="E1_5" Width="100px" NumericInput="true" Height="20px" MaxLength="14" ReadOnly="true" Nullable="false">
                                        <DisplayFormat Format="###,###,###,##0.00" IsEnabled="True" Type="Number">
                                        </DisplayFormat>
                                    </ISWebInput:WebInput>
                                </td>
                                <td>
                                    <ISWebInput:WebInput runat="server" ID="E1_6" Width="50px" NumericInput="true" Height="20px" MaxLength="10" Nullable="false">
                                        <ClientSideEvents OnAfterValueChanged="CalSum" OnKeyDown="WebInputOnKeyDown" OnKeyPress="WebInputOnKeyDown" OnBeforeValueChanged="WebInputOnBeforeValueChanged"></ClientSideEvents>
                                        <DisplayFormat Format="#,###,###,##0.##" IsEnabled="True" Type="Number">
                                        </DisplayFormat>
                                    </ISWebInput:WebInput>
                                </td>
                                <td>
                                    <ISWebInput:WebInput runat="server" ID="E1_7" Width="100px" NumericInput="true" Height="20px" MaxLength="14" Nullable="false">
                                        <ClientSideEvents OnAfterValueChanged="CalSum" OnKeyDown="WebInputOnKeyDown" OnKeyPress="WebInputOnKeyDown"></ClientSideEvents>
                                        <DisplayFormat Format="###,###,###,##0.00" IsEnabled="True" Type="Number">
                                        </DisplayFormat>
                                    </ISWebInput:WebInput>
                                </td>
                                <td>
                                    <ISWebInput:WebInput runat="server" ID="E1_8" Width="120px" NumericInput="true" Height="20px" MaxLength="14" ReadOnly="true" Nullable="false">
                                        <DisplayFormat Format="###,###,###,##0.00" IsEnabled="True" Type="Number">
                                        </DisplayFormat>
                                    </ISWebInput:WebInput>
                                </td>
                                <td>
                                    <a href="#" style="text-decoration: none; border: none;" onclick="popupattach1(1)">
                                        <img src="a0.jpg" height="16px" style="text-decoration: none; border: none;" />
                                    </a>
                                    <a href="#" style="text-decoration: none; border: none;" onclick="popupattach1(1)">
                                        <asp:Label ID="Attach1" runat="server" Text="" Font-Bold="true"></asp:Label></a>
                                </td>
                            </tr>
                            <tr class="tblf05_row_d">
                                <td align="left">มีเลขคดีดำแล้ว<br />
                                    (ฟ้องคดี)<asp:Label ID="E2_ID" runat="server" Text="" Visible="false"></asp:Label>
                                    <asp:Label ID="E2_ID2" runat="server" Text="" Visible="false"></asp:Label>
                                </td>
                                <td>
                                    <ISWebInput:WebInput runat="server" ID="E2_1" Width="50px" NumericInput="true" Height="20px" MaxLength="10" Nullable="false">
                                        <ClientSideEvents OnAfterValueChanged="CalSum" OnKeyDown="WebInputOnKeyDown" OnKeyPress="WebInputOnKeyDown" OnBeforeValueChanged="WebInputOnBeforeValueChanged" ></ClientSideEvents>
                                        <DisplayFormat Format="#,###,###,##0.##" IsEnabled="True" Type="Number">
                                        </DisplayFormat>
                                    </ISWebInput:WebInput>
                                </td>
                                <td>
                                    <ISWebInput:WebInput runat="server" ID="E2_2" Width="100px" NumericInput="true" Height="20px" MaxLength="14" Nullable="false">
                                        <ClientSideEvents OnAfterValueChanged="CalSum" OnKeyDown="WebInputOnKeyDown" OnKeyPress="WebInputOnKeyDown"></ClientSideEvents>
                                        <DisplayFormat Format="###,###,###,##0.00" IsEnabled="True" Type="Number">
                                        </DisplayFormat>
                                    </ISWebInput:WebInput>
                                </td>
                                <td>
                                    <ISWebInput:WebInput runat="server" ID="E2_3" Width="50px" NumericInput="true" Height="20px" MaxLength="10" Nullable="false">
                                        <ClientSideEvents OnAfterValueChanged="CalSum" OnKeyDown="WebInputOnKeyDown" OnKeyPress="WebInputOnKeyDown" OnBeforeValueChanged="WebInputOnBeforeValueChanged"></ClientSideEvents>
                                        <DisplayFormat Format="#,###,###,##0.##" IsEnabled="True" Type="Number">
                                        </DisplayFormat>
                                    </ISWebInput:WebInput>
                                </td>
                                <td>
                                    <ISWebInput:WebInput runat="server" ID="E2_4" Width="100px" NumericInput="true" Height="20px" MaxLength="14" Nullable="false">
                                        <ClientSideEvents OnAfterValueChanged="CalSum" OnKeyDown="WebInputOnKeyDown" OnKeyPress="WebInputOnKeyDown"></ClientSideEvents>
                                        <DisplayFormat Format="###,###,###,##0.00" IsEnabled="True" Type="Number">
                                        </DisplayFormat>
                                    </ISWebInput:WebInput>
                                </td>
                                <td>
                                    <ISWebInput:WebInput runat="server" ID="E2_5" Width="100px" NumericInput="true" Height="20px" MaxLength="14" ReadOnly="true" Nullable="false">
                                        <DisplayFormat Format="###,###,###,##0.00" IsEnabled="True" Type="Number">
                                        </DisplayFormat>
                                    </ISWebInput:WebInput>
                                </td>
                                <td>
                                    <ISWebInput:WebInput runat="server" ID="E2_6" Width="50px" NumericInput="true" Height="20px" MaxLength="10" Nullable="false">
                                        <ClientSideEvents OnAfterValueChanged="CalSum" OnKeyDown="WebInputOnKeyDown" OnKeyPress="WebInputOnKeyDown" OnBeforeValueChanged="WebInputOnBeforeValueChanged"></ClientSideEvents>
                                        <DisplayFormat Format="#,###,###,##0.##" IsEnabled="True" Type="Number">
                                        </DisplayFormat>
                                    </ISWebInput:WebInput>
                                </td>
                                <td>
                                    <ISWebInput:WebInput runat="server" ID="E2_7" Width="100px" NumericInput="true" Height="20px" MaxLength="14" Nullable="false">
                                        <ClientSideEvents OnAfterValueChanged="CalSum" OnKeyDown="WebInputOnKeyDown" OnKeyPress="WebInputOnKeyDown"></ClientSideEvents>
                                        <DisplayFormat Format="###,###,###,##0.00" IsEnabled="True" Type="Number">
                                        </DisplayFormat>
                                    </ISWebInput:WebInput>
                                </td>
                                <td>
                                    <ISWebInput:WebInput runat="server" ID="E2_8" Width="120px" NumericInput="true" Height="20px" MaxLength="14" ReadOnly="true" Nullable="false">
                                        <DisplayFormat Format="###,###,###,##0.00" IsEnabled="True" Type="Number">
                                        </DisplayFormat>
                                    </ISWebInput:WebInput>
                                </td>
                                <td>
                                    <a href="#" style="text-decoration: none; border: none;" onclick="popupattach1(2)">
                                        <img src="a0.jpg" height="16px" style="text-decoration: none; border: none;" />
                                    </a>
                                    <a href="#" style="text-decoration: none; border: none;" onclick="popupattach1(2)">
                                        <asp:Label ID="Attach2" runat="server" Text="" Font-Bold="true"></asp:Label></a>
                                </td>
                            </tr>
                            <tr class="tblf05_row_o">
                                <td align="left">มีเลขคดีแดงแล้ว<br />
                                    (พิพากษา)<asp:Label ID="E3_ID" runat="server" Text="" Visible="false"></asp:Label>
                                    <asp:Label ID="E3_ID2" runat="server" Text="" Visible="false"></asp:Label>
                                </td>
                                <td>
                                    <ISWebInput:WebInput runat="server" ID="E3_1" Width="50px" NumericInput="true" Height="20px" MaxLength="10" Nullable="false">
                                        <ClientSideEvents OnAfterValueChanged="CalSum" OnKeyDown="WebInputOnKeyDown" OnKeyPress="WebInputOnKeyDown" OnBeforeValueChanged="WebInputOnBeforeValueChanged"></ClientSideEvents>
                                        <DisplayFormat Format="#,###,###,##0.##" IsEnabled="True" Type="Number">
                                        </DisplayFormat>
                                    </ISWebInput:WebInput>
                                </td>
                                <td>
                                    <ISWebInput:WebInput runat="server" ID="E3_2" Width="100px" NumericInput="true" Height="20px" MaxLength="14" Nullable="false">
                                        <ClientSideEvents OnAfterValueChanged="CalSum" OnKeyDown="WebInputOnKeyDown" OnKeyPress="WebInputOnKeyDown"></ClientSideEvents>
                                        <DisplayFormat Format="###,###,###,##0.00" IsEnabled="True" Type="Number">
                                        </DisplayFormat>
                                    </ISWebInput:WebInput>
                                </td>
                                <td>
                                    <ISWebInput:WebInput runat="server" ID="E3_3" Width="50px" NumericInput="true" Height="20px" MaxLength="10" Nullable="false">
                                        <ClientSideEvents OnAfterValueChanged="CalSum" OnKeyDown="WebInputOnKeyDown" OnKeyPress="WebInputOnKeyDown" OnBeforeValueChanged="WebInputOnBeforeValueChanged"></ClientSideEvents>
                                        <DisplayFormat Format="#,###,###,##0.##" IsEnabled="True" Type="Number">
                                        </DisplayFormat>
                                    </ISWebInput:WebInput>
                                </td>
                                <td>
                                    <ISWebInput:WebInput runat="server" ID="E3_4" Width="100px" NumericInput="true" Height="20px" MaxLength="14" Nullable="false">
                                        <ClientSideEvents OnAfterValueChanged="CalSum" OnKeyDown="WebInputOnKeyDown" OnKeyPress="WebInputOnKeyDown"></ClientSideEvents>
                                        <DisplayFormat Format="###,###,###,##0.00" IsEnabled="True" Type="Number">
                                        </DisplayFormat>
                                    </ISWebInput:WebInput>
                                </td>
                                <td>
                                    <ISWebInput:WebInput runat="server" ID="E3_5" Width="100px" NumericInput="true" Height="20px" MaxLength="14" ReadOnly="true" Nullable="false">
                                        <DisplayFormat Format="###,###,###,##0.00" IsEnabled="True" Type="Number">
                                        </DisplayFormat>
                                    </ISWebInput:WebInput>
                                </td>
                                <td>
                                    <ISWebInput:WebInput runat="server" ID="E3_6" Width="50px" NumericInput="true" Height="20px" MaxLength="10" Nullable="false">
                                        <ClientSideEvents OnAfterValueChanged="CalSum" OnKeyDown="WebInputOnKeyDown" OnKeyPress="WebInputOnKeyDown" OnBeforeValueChanged="WebInputOnBeforeValueChanged"></ClientSideEvents>
                                        <DisplayFormat Format="#,###,###,##0.##" IsEnabled="True" Type="Number">
                                        </DisplayFormat>
                                    </ISWebInput:WebInput>
                                </td>
                                <td>
                                    <ISWebInput:WebInput runat="server" ID="E3_7" Width="100px" NumericInput="true" Height="20px" MaxLength="14" Nullable="false">
                                        <ClientSideEvents OnAfterValueChanged="CalSum" OnKeyDown="WebInputOnKeyDown" OnKeyPress="WebInputOnKeyDown"></ClientSideEvents>
                                        <DisplayFormat Format="###,###,###,##0.00" IsEnabled="True" Type="Number">
                                        </DisplayFormat>
                                    </ISWebInput:WebInput>
                                </td>
                                <td>
                                    <ISWebInput:WebInput runat="server" ID="E3_8" Width="120px" NumericInput="true" Height="20px" MaxLength="14" ReadOnly="true" Nullable="false">
                                        <DisplayFormat Format="###,###,###,##0.00" IsEnabled="True" Type="Number">
                                        </DisplayFormat>
                                    </ISWebInput:WebInput>
                                </td>
                                <td>
                                    <a href="#" style="text-decoration: none; border: none;" onclick="popupattach1(3)">
                                        <img src="a0.jpg" height="16px" style="text-decoration: none; border: none;" />
                                    </a>
                                    <a href="#" style="text-decoration: none; border: none;" onclick="popupattach1(3)">
                                        <asp:Label ID="Attach3" runat="server" Text="" Font-Bold="true"></asp:Label></a>
                                </td>
                            </tr>
                            <tr class="tblf05_row_d">
                                <td align="left">มีวันที่ยึดทรัพย์<br />
                                    (ยึดทรัพย์/สืบทรัพย์)<asp:Label ID="E4_ID" runat="server" Text="" Visible="false"></asp:Label>
                                    <asp:Label ID="E4_ID2" runat="server" Text="" Visible="false"></asp:Label>
                                </td>
                                <td>
                                    <ISWebInput:WebInput runat="server" ID="E4_1" Width="50px" NumericInput="true" Height="21px" MaxLength="10" Nullable="false">
                                        <ClientSideEvents OnAfterValueChanged="CalSum" OnKeyDown="WebInputOnKeyDown" OnKeyPress="WebInputOnKeyDown" OnBeforeValueChanged="WebInputOnBeforeValueChanged"></ClientSideEvents>
                                        <DisplayFormat Format="#,###,###,##0.##" IsEnabled="True" Type="Number">
                                        </DisplayFormat>
                                    </ISWebInput:WebInput>
                                </td>
                                <td>
                                    <ISWebInput:WebInput runat="server" ID="E4_2" Width="100px" NumericInput="true" Height="20px" MaxLength="14" Nullable="false">
                                        <ClientSideEvents OnAfterValueChanged="CalSum" OnKeyDown="WebInputOnKeyDown" OnKeyPress="WebInputOnKeyDown"></ClientSideEvents>
                                        <DisplayFormat Format="###,###,###,##0.00" IsEnabled="True" Type="Number">
                                        </DisplayFormat>
                                    </ISWebInput:WebInput>
                                </td>
                                <td>
                                    <ISWebInput:WebInput runat="server" ID="E4_3" Width="50px" NumericInput="true" Height="20px" MaxLength="10" Nullable="false">
                                        <ClientSideEvents OnAfterValueChanged="CalSum" OnKeyDown="WebInputOnKeyDown" OnKeyPress="WebInputOnKeyDown" OnBeforeValueChanged="WebInputOnBeforeValueChanged"></ClientSideEvents>
                                        <DisplayFormat Format="#,###,###,##0.##" IsEnabled="True" Type="Number">
                                        </DisplayFormat>
                                    </ISWebInput:WebInput>
                                </td>
                                <td>
                                    <ISWebInput:WebInput runat="server" ID="E4_4" Width="100px" NumericInput="true" Height="20px" MaxLength="14" Nullable="false">
                                        <ClientSideEvents OnAfterValueChanged="CalSum" OnKeyDown="WebInputOnKeyDown" OnKeyPress="WebInputOnKeyDown"></ClientSideEvents>
                                        <DisplayFormat Format="###,###,###,##0.00" IsEnabled="True" Type="Number">
                                        </DisplayFormat>
                                    </ISWebInput:WebInput>
                                </td>
                                <td>
                                    <ISWebInput:WebInput runat="server" ID="E4_5" Width="100px" NumericInput="true" Height="20px" MaxLength="14" ReadOnly="true" Nullable="false">
                                        <DisplayFormat Format="###,###,###,##0.00" IsEnabled="True" Type="Number">
                                        </DisplayFormat>
                                    </ISWebInput:WebInput>
                                </td>
                                <td>
                                    <ISWebInput:WebInput runat="server" ID="E4_6" Width="50px" NumericInput="true" Height="20px" MaxLength="10" Nullable="false">
                                        <ClientSideEvents OnAfterValueChanged="CalSum" OnKeyDown="WebInputOnKeyDown" OnKeyPress="WebInputOnKeyDown" OnBeforeValueChanged="WebInputOnBeforeValueChanged"></ClientSideEvents>
                                        <DisplayFormat Format="#,###,###,##0.##" IsEnabled="True" Type="Number">
                                        </DisplayFormat>
                                    </ISWebInput:WebInput>
                                </td>
                                <td>
                                    <ISWebInput:WebInput runat="server" ID="E4_7" Width="100px" NumericInput="true" Height="20px" MaxLength="14" Nullable="false">
                                        <ClientSideEvents OnAfterValueChanged="CalSum" OnKeyDown="WebInputOnKeyDown" OnKeyPress="WebInputOnKeyDown"></ClientSideEvents>
                                        <DisplayFormat Format="###,###,###,##0.00" IsEnabled="True" Type="Number">
                                        </DisplayFormat>
                                    </ISWebInput:WebInput>
                                </td>
                                <td>
                                    <ISWebInput:WebInput runat="server" ID="E4_8" Width="120px" NumericInput="true" Height="20px" MaxLength="14" ReadOnly="true" Nullable="false">
                                        <DisplayFormat Format="###,###,###,##0.00" IsEnabled="True" Type="Number">
                                        </DisplayFormat>
                                    </ISWebInput:WebInput>
                                </td>
                                <td>
                                    <a href="#" style="text-decoration: none; border: none;" onclick="popupattach1(4)">
                                        <img src="a0.jpg" height="16px" style="text-decoration: none; border: none;" />
                                    </a>
                                    <a href="#" style="text-decoration: none; border: none;" onclick="popupattach1(4)">
                                        <asp:Label ID="Attach4" runat="server" Text="" Font-Bold="true"></asp:Label></a>
                                </td>
                            </tr>
                            <tr class="tblf05_row_o">
                                <td align="left">มีวันนัดขายทอดตลาดแล้ว<br />
                                    (อยู่ระหว่างขายทอดตลาด)<asp:Label ID="E5_ID" runat="server" Text="" Visible="false"></asp:Label>
                                    <asp:Label ID="E5_ID2" runat="server" Text="" Visible="false"></asp:Label>
                                </td>
                                <td>
                                    <ISWebInput:WebInput runat="server" ID="E5_1" Width="50px" NumericInput="true" Height="20px" MaxLength="10" Nullable="false">
                                        <ClientSideEvents OnAfterValueChanged="CalSum" OnKeyDown="WebInputOnKeyDown" OnKeyPress="WebInputOnKeyDown" OnBeforeValueChanged="WebInputOnBeforeValueChanged"></ClientSideEvents>
                                        <DisplayFormat Format="#,###,###,##0.##" IsEnabled="True" Type="Number">
                                        </DisplayFormat>
                                    </ISWebInput:WebInput>
                                </td>
                                <td>
                                    <ISWebInput:WebInput runat="server" ID="E5_2" Width="100px" NumericInput="true" Height="20px" MaxLength="14" Nullable="false">
                                        <ClientSideEvents OnAfterValueChanged="CalSum" OnKeyDown="WebInputOnKeyDown" OnKeyPress="WebInputOnKeyDown"></ClientSideEvents>
                                        <DisplayFormat Format="###,###,###,##0.00" IsEnabled="True" Type="Number">
                                        </DisplayFormat>
                                    </ISWebInput:WebInput>
                                </td>
                                <td>
                                    <ISWebInput:WebInput runat="server" ID="E5_3" Width="50px" NumericInput="true" Height="20px" MaxLength="10" Nullable="false">
                                        <ClientSideEvents OnAfterValueChanged="CalSum" OnKeyDown="WebInputOnKeyDown" OnKeyPress="WebInputOnKeyDown" OnBeforeValueChanged="WebInputOnBeforeValueChanged"></ClientSideEvents>
                                        <DisplayFormat Format="#,###,###,##0.##" IsEnabled="True" Type="Number">
                                        </DisplayFormat>
                                    </ISWebInput:WebInput>
                                </td>
                                <td>
                                    <ISWebInput:WebInput runat="server" ID="E5_4" Width="100px" NumericInput="true" Height="20px" MaxLength="14" Nullable="false">
                                        <ClientSideEvents OnAfterValueChanged="CalSum" OnKeyDown="WebInputOnKeyDown" OnKeyPress="WebInputOnKeyDown"></ClientSideEvents>
                                        <DisplayFormat Format="###,###,###,##0.00" IsEnabled="True" Type="Number">
                                        </DisplayFormat>
                                    </ISWebInput:WebInput>
                                </td>
                                <td>
                                    <ISWebInput:WebInput runat="server" ID="E5_5" Width="100px" NumericInput="true" Height="20px" MaxLength="14" ReadOnly="true" Nullable="false">
                                        <DisplayFormat Format="###,###,###,##0.00" IsEnabled="True" Type="Number">
                                        </DisplayFormat>
                                    </ISWebInput:WebInput>
                                </td>
                                <td>
                                    <ISWebInput:WebInput runat="server" ID="E5_6" Width="50px" NumericInput="true" Height="20px" MaxLength="10" Nullable="false">
                                        <ClientSideEvents OnAfterValueChanged="CalSum" OnKeyDown="WebInputOnKeyDown" OnKeyPress="WebInputOnKeyDown" OnBeforeValueChanged="WebInputOnBeforeValueChanged"></ClientSideEvents>
                                        <DisplayFormat Format="#,###,###,##0.##" IsEnabled="True" Type="Number">
                                        </DisplayFormat>
                                    </ISWebInput:WebInput>
                                </td>
                                <td>
                                    <ISWebInput:WebInput runat="server" ID="E5_7" Width="100px" NumericInput="true" Height="20px" MaxLength="14" Nullable="false">
                                        <ClientSideEvents OnAfterValueChanged="CalSum" OnKeyDown="WebInputOnKeyDown" OnKeyPress="WebInputOnKeyDown"></ClientSideEvents>
                                        <DisplayFormat Format="###,###,###,##0.00" IsEnabled="True" Type="Number">
                                        </DisplayFormat>
                                    </ISWebInput:WebInput>
                                </td>
                                <td>
                                    <ISWebInput:WebInput runat="server" ID="E5_8" Width="120px" NumericInput="true" Height="20px" MaxLength="14" ReadOnly="true" Nullable="false">
                                        <DisplayFormat Format="###,###,###,##0.00" IsEnabled="True" Type="Number">
                                        </DisplayFormat>
                                    </ISWebInput:WebInput>
                                </td>
                                <td>
                                    <a href="#" style="text-decoration: none; border: none;" onclick="popupattach1(5)">
                                        <img src="a0.jpg" height="16px" style="text-decoration: none; border: none;" />
                                    </a>
                                    <a href="#" style="text-decoration: none; border: none;" onclick="popupattach1(5)">
                                        <asp:Label ID="Attach5" runat="server" Text="" Font-Bold="true"></asp:Label></a>
                                </td>
                            </tr>
                            <tr class="tblf05_row_d">
                                <td align="left">มีผู้ซื้อทรัพย์ได้แล้ว<br />
                                    (ขายทอดตลาดได้แล้ว/รอรับเงิน)<asp:Label ID="E6_ID" runat="server" Text="" Visible="false"></asp:Label>
                                    <asp:Label ID="E6_ID2" runat="server" Text="" Visible="false"></asp:Label>
                                </td>
                                <td>
                                    <ISWebInput:WebInput runat="server" ID="E6_1" Width="50px" NumericInput="true" Height="20px" MaxLength="10" Nullable="false">
                                        <ClientSideEvents OnAfterValueChanged="CalSum" OnKeyDown="WebInputOnKeyDown" OnKeyPress="WebInputOnKeyDown" OnBeforeValueChanged="WebInputOnBeforeValueChanged"></ClientSideEvents>
                                        <DisplayFormat Format="#,###,###,##0.##" IsEnabled="True" Type="Number">
                                        </DisplayFormat>
                                    </ISWebInput:WebInput>
                                </td>
                                <td>
                                    <ISWebInput:WebInput runat="server" ID="E6_2" Width="100px" NumericInput="true" Height="20px" MaxLength="14" Nullable="false">
                                        <ClientSideEvents OnAfterValueChanged="CalSum" OnKeyDown="WebInputOnKeyDown" OnKeyPress="WebInputOnKeyDown"></ClientSideEvents>
                                        <DisplayFormat Format="###,###,###,##0.00" IsEnabled="True" Type="Number">
                                        </DisplayFormat>
                                    </ISWebInput:WebInput>
                                </td>
                                <td>
                                    <ISWebInput:WebInput runat="server" ID="E6_3" Width="50px" NumericInput="true" Height="20px" MaxLength="10" Nullable="false">
                                        <ClientSideEvents OnAfterValueChanged="CalSum" OnKeyDown="WebInputOnKeyDown" OnKeyPress="WebInputOnKeyDown" OnBeforeValueChanged="WebInputOnBeforeValueChanged"></ClientSideEvents>
                                        <DisplayFormat Format="#,###,###,##0.##" IsEnabled="True" Type="Number">
                                        </DisplayFormat>
                                    </ISWebInput:WebInput>
                                </td>
                                <td>
                                    <ISWebInput:WebInput runat="server" ID="E6_4" Width="100px" NumericInput="true" Height="20px" MaxLength="14" Nullable="false">
                                        <ClientSideEvents OnAfterValueChanged="CalSum" OnKeyDown="WebInputOnKeyDown" OnKeyPress="WebInputOnKeyDown"></ClientSideEvents>
                                        <DisplayFormat Format="###,###,###,##0.00" IsEnabled="True" Type="Number">
                                        </DisplayFormat>
                                    </ISWebInput:WebInput>
                                </td>
                                <td>
                                    <ISWebInput:WebInput runat="server" ID="E6_5" Width="100px" NumericInput="true" Height="20px" MaxLength="14" ReadOnly="true" Nullable="false">
                                        <DisplayFormat Format="###,###,###,##0.00" IsEnabled="True" Type="Number">
                                        </DisplayFormat>
                                    </ISWebInput:WebInput>
                                </td>
                                <td>
                                    <ISWebInput:WebInput runat="server" ID="E6_6" Width="50px" NumericInput="true" Height="20px" MaxLength="10" Nullable="false">
                                        <ClientSideEvents OnAfterValueChanged="CalSum" OnKeyDown="WebInputOnKeyDown" OnKeyPress="WebInputOnKeyDown" OnBeforeValueChanged="WebInputOnBeforeValueChanged"></ClientSideEvents>
                                        <DisplayFormat Format="#,###,###,##0.##" IsEnabled="True" Type="Number">
                                        </DisplayFormat>
                                    </ISWebInput:WebInput>
                                </td>
                                <td>
                                    <ISWebInput:WebInput runat="server" ID="E6_7" Width="100px" NumericInput="true" Height="20px" MaxLength="14" Nullable="false">
                                        <ClientSideEvents OnAfterValueChanged="CalSum" OnKeyDown="WebInputOnKeyDown" OnKeyPress="WebInputOnKeyDown"></ClientSideEvents>
                                        <DisplayFormat Format="###,###,###,##0.00" IsEnabled="True" Type="Number">
                                        </DisplayFormat>
                                    </ISWebInput:WebInput>
                                </td>
                                <td>
                                    <ISWebInput:WebInput runat="server" ID="E6_8" Width="120px" NumericInput="true" Height="20px" MaxLength="14" ReadOnly="true" Nullable="false">
                                        <DisplayFormat Format="###,###,###,##0.00" IsEnabled="True" Type="Number">
                                        </DisplayFormat>
                                    </ISWebInput:WebInput>
                                </td>
                                <td>
                                    <a href="#" style="text-decoration: none; border: none;" onclick="popupattach1(6)">
                                        <img src="a0.jpg" height="16px" style="text-decoration: none; border: none;" />
                                    </a>
                                    <a href="#" style="text-decoration: none; border: none;" onclick="popupattach1(6)">
                                        <asp:Label ID="Attach6" runat="server" Text="" Font-Bold="true"></asp:Label></a>
                                </td>
                            </tr>
                            <tr class="tblf05_row_o">
                                <td align="left">ได้บัญชีรับจ่ายแล้ว<br />
                                    (ผลสืบทรัพย์ / รอตัดหนี้สูญ)<asp:Label ID="E7_ID" runat="server" Text="" Visible="false"></asp:Label>
                                    <asp:Label ID="E7_ID2" runat="server" Text="" Visible="false"></asp:Label>
                                </td>
                                <td>
                                    <ISWebInput:WebInput runat="server" ID="E7_1" Width="50px" NumericInput="true" Height="20px" MaxLength="10" Nullable="false">
                                        <ClientSideEvents OnAfterValueChanged="CalSum" OnKeyDown="WebInputOnKeyDown" OnKeyPress="WebInputOnKeyDown" OnBeforeValueChanged="WebInputOnBeforeValueChanged"></ClientSideEvents>
                                        <DisplayFormat Format="#,###,###,##0.##" IsEnabled="True" Type="Number">
                                        </DisplayFormat>
                                    </ISWebInput:WebInput>
                                </td>
                                <td>
                                    <ISWebInput:WebInput runat="server" ID="E7_2" Width="100px" NumericInput="true" Height="20px" MaxLength="14" Nullable="false">
                                        <ClientSideEvents OnAfterValueChanged="CalSum" OnKeyDown="WebInputOnKeyDown" OnKeyPress="WebInputOnKeyDown"></ClientSideEvents>
                                        <DisplayFormat Format="###,###,###,##0.00" IsEnabled="True" Type="Number">
                                        </DisplayFormat>
                                    </ISWebInput:WebInput>
                                </td>
                                <td>
                                    <ISWebInput:WebInput runat="server" ID="E7_3" Width="50px" NumericInput="true" Height="20px" MaxLength="10" Nullable="false">
                                        <ClientSideEvents OnAfterValueChanged="CalSum" OnKeyDown="WebInputOnKeyDown" OnKeyPress="WebInputOnKeyDown" OnBeforeValueChanged="WebInputOnBeforeValueChanged"></ClientSideEvents>
                                        <DisplayFormat Format="#,###,###,##0.##" IsEnabled="True" Type="Number">
                                        </DisplayFormat>
                                    </ISWebInput:WebInput>
                                </td>
                                <td>
                                    <ISWebInput:WebInput runat="server" ID="E7_4" Width="100px" NumericInput="true" Height="20px" MaxLength="14" Nullable="false">
                                        <ClientSideEvents OnAfterValueChanged="CalSum" OnKeyDown="WebInputOnKeyDown" OnKeyPress="WebInputOnKeyDown"></ClientSideEvents>
                                        <DisplayFormat Format="###,###,###,##0.00" IsEnabled="True" Type="Number">
                                        </DisplayFormat>
                                    </ISWebInput:WebInput>
                                </td>
                                <td>
                                    <ISWebInput:WebInput runat="server" ID="E7_5" Width="100px" NumericInput="true" Height="20px" MaxLength="14" ReadOnly="true" Nullable="false">
                                        <DisplayFormat Format="###,###,###,##0.00" IsEnabled="True" Type="Number">
                                        </DisplayFormat>
                                    </ISWebInput:WebInput>
                                </td>
                                <td>
                                    <ISWebInput:WebInput runat="server" ID="E7_6" Width="50px" NumericInput="true" Height="20px" MaxLength="10" Nullable="false">
                                        <ClientSideEvents OnAfterValueChanged="CalSum" OnKeyDown="WebInputOnKeyDown" OnKeyPress="WebInputOnKeyDown" OnBeforeValueChanged="WebInputOnBeforeValueChanged"></ClientSideEvents>
                                        <DisplayFormat Format="#,###,###,##0.##" IsEnabled="True" Type="Number">
                                        </DisplayFormat>
                                    </ISWebInput:WebInput>
                                </td>
                                <td>
                                    <ISWebInput:WebInput runat="server" ID="E7_7" Width="100px" NumericInput="true" Height="20px" MaxLength="14" Nullable="false">
                                        <ClientSideEvents OnAfterValueChanged="CalSum" OnKeyDown="WebInputOnKeyDown" OnKeyPress="WebInputOnKeyDown"></ClientSideEvents>
                                        <DisplayFormat Format="###,###,###,##0.00" IsEnabled="True" Type="Number">
                                        </DisplayFormat>
                                    </ISWebInput:WebInput>
                                </td>
                                <td>
                                    <ISWebInput:WebInput runat="server" ID="E7_8" Width="120px" NumericInput="true" Height="20px" MaxLength="14" ReadOnly="true" Nullable="false">
                                        <DisplayFormat Format="###,###,###,##0.00" IsEnabled="True" Type="Number">
                                        </DisplayFormat>
                                    </ISWebInput:WebInput>
                                </td>
                                <td>
                                    <a href="#" style="text-decoration: none; border: none;" onclick="popupattach1(7)">
                                        <img src="a0.jpg" height="16px" style="text-decoration: none; border: none;" />
                                    </a>
                                    <a href="#" style="text-decoration: none; border: none;" onclick="popupattach1(7)">
                                        <asp:Label ID="Attach7" runat="server" Text="" Font-Bold="true"></asp:Label></a>
                                </td>
                            </tr>
                            <tr>
                                <td align="right" style="font-weight: bold;">รวม</td>
                                <td>
                                    <ISWebInput:WebInput runat="server" ID="S1" Width="50px" NumericInput="true" Height="22px" MaxLength="10" ReadOnly="true" Nullable="false">
                                        <DisplayFormat Format="#,###,###,##0" IsEnabled="True" Type="Number">
                                        </DisplayFormat>
                                    </ISWebInput:WebInput>
                                </td>
                                <td>
                                    <ISWebInput:WebInput runat="server" ID="S2" Width="100px" NumericInput="true" Height="20px" MaxLength="14" ReadOnly="true" Nullable="false">
                                        <DisplayFormat Format="###,###,###,##0.00" IsEnabled="True" Type="Number">
                                        </DisplayFormat>
                                    </ISWebInput:WebInput>
                                </td>
                                <td>
                                    <ISWebInput:WebInput runat="server" ID="S3" Width="50px" NumericInput="true" Height="20px" MaxLength="10" ReadOnly="true" Nullable="false">
                                        <DisplayFormat Format="#,###,###,##0" IsEnabled="True" Type="Number">
                                        </DisplayFormat>
                                    </ISWebInput:WebInput>
                                </td>
                                <td>
                                    <ISWebInput:WebInput runat="server" ID="S4" Width="100px" NumericInput="true" Height="20px" MaxLength="14" ReadOnly="true" Visible="false" Nullable="false">
                                        <DisplayFormat Format="###,###,###,##0.00" IsEnabled="True" Type="Number">
                                        </DisplayFormat>
                                    </ISWebInput:WebInput>
                                </td>
                                <td>
                                    <ISWebInput:WebInput runat="server" ID="S5" Width="100px" NumericInput="true" Height="20px" MaxLength="14" ReadOnly="true" Nullable="false">
                                        <DisplayFormat Format="###,###,###,##0.00" IsEnabled="True" Type="Number">
                                        </DisplayFormat>
                                    </ISWebInput:WebInput>
                                </td>
                                <td>
                                    <ISWebInput:WebInput runat="server" ID="S6" Width="50px" NumericInput="true" Height="20px" MaxLength="10" ReadOnly="true" Nullable="false">
                                        <DisplayFormat Format="#,###,###,##0" IsEnabled="True" Type="Number">
                                        </DisplayFormat>
                                    </ISWebInput:WebInput>
                                </td>
                                <td>
                                    <ISWebInput:WebInput runat="server" ID="S7" Width="100px" NumericInput="true" Height="20px" MaxLength="14" ReadOnly="true" Visible="false" Nullable="false">
                                        <DisplayFormat Format="###,###,###,##0.00" IsEnabled="True" Type="Number">
                                        </DisplayFormat>
                                    </ISWebInput:WebInput>
                                </td>
                                <td>
                                    <ISWebInput:WebInput runat="server" ID="S8" Width="120px" NumericInput="true" Height="22px" MaxLength="14" ReadOnly="true" Nullable="false">
                                        <DisplayFormat Format="###,###,###,##0.00" IsEnabled="True" Type="Number">
                                        </DisplayFormat>
                                    </ISWebInput:WebInput>
                                </td>
                                <td></td>
                            </tr>
                        </table>
                    </td>
                </tr>
                <tr>
                    <td>&nbsp;</td>
                </tr>
                <tr>
                    <td align="center">
                        <asp:Button ID="SaveDocument" runat="server" Text="บันทึก" Width="60px" />&nbsp;&nbsp;<asp:Button ID="CloseBtn" runat="server" Text="ปิด" Width="60px" OnClientClick="ClosePop()" /></td>
                </tr>
                <tr>
                    <td>&nbsp;</td>
                </tr>
            </table>
        </div>
    </form>
    <script>
    <%=scripttext%></script>
    <script>
        function popupattach1(row_num) {
            var ids = 0;
            if (row_num == 1) {
                ids = <%=eid1%>
                }
            else if (row_num == 2) {
                ids = <%=eid2%>
                }
            else if (row_num == 3) {
                ids = <%=eid3%>
                }
            else if (row_num == 4) {
                ids = <%=eid4%>
                }
            else if (row_num == 5) {
                ids = <%=eid5%>
                }
            else if (row_num == 6) {
                ids = <%=eid6%>
                }
            else if (row_num == 7) {
                ids = <%=eid7%>
                }
    TINY.box.show({ iframe: 'neatupload.aspx?fid=f05&rownum='+ row_num +'&BDID=' + ids, boxid: 'frameless', width: 540, height: 450, fixed: true, maskid: 'lightmask', maskopacity: 40, closejs: function () { closeJS2() } });

}
    </script>
</body>
</html>
